package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * 卡密
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_user_stroke_order_mall_card_info")
public class UserStrokeOrderMallCardInfo extends Model<UserStrokeOrderMallCardInfo> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "card_info_id", type = IdType.ASSIGN_ID)
    private String cardInfoId;
    /**
     * 卡号
     */
    @TableField("card_no")
    private String cardNo;
    /**
     * 密码
     */
    @TableField("card_pwd")
    private String cardPwd;
    /**
     * 过期时间
     */
    @TableField("expire_time")
    private String expireTime;
    /**
     * 订单ID
     */
    @TableField("order_id")
    private String orderId;
    /**
     * 行程ID
     */
    @TableField("sid")
    private String sid;

    public void freeData() {
        this.cardInfoId = null;
        this.cardNo = null;
        this.cardPwd = null;
        this.expireTime = null;
        this.orderId = null;
        this.sid = null;
    }

}
